package com.yuelan.apartment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuelan.apartment.domain.ApaTenant;
import com.yuelan.apartment.domain.vo.ApaTenantVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description: 房客信息
 * @Author: ZhaoYi
 * @date: 24-5-23 16:55
 */
@Mapper
public interface ApaTenantMapper extends BaseMapper<ApaTenant> {

    /**
     * 新增
     **/
    int insert(ApaTenant apaTenant);

    /**
     * 批量删除房客信息
     */
    int deleteTenantByIds(Long[] ids);

    /**
     * 记录总数
     */
    Integer total(@Param("createBy") String createBy);

    /**
     * 联表查询租户
     */
    List<ApaTenantVo> selectTenant(@Param("createBy") String createBy);

    /**
     * 导出房客
     */
    List<ApaTenantVo> export(@Param("createBy") String createBy);


}
